home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / lib / makedir.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1995-05-04  |  315b  |  16 lines

  1. #!/bin/sh
  2.  
  3. # Create the imf dir file.
  4. # The perl version in makedir.pl detects some errors that this one will
  5. # miss, but otherwise they're identical in behavior.
  6.  
  7. echo "ImageFamilyName FileName"
  8.  
  9. grep '(imf ' $* |  \
  10. sed -e 's/\(.*\):(imf "\([-a-z0-9]*\)".*$/\2 \1/' |  \
  11. grep -v : |  \
  12. sort |  \
  13. uniq
  14.  
  15. echo ". ."
  16.